/**
 * kl yy-ds @2021
 */
package com.cxps.server.config;

import com.cxps.server.utils.SecurityUtil;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.stereotype.Component;

/**
 * 服务安全配置类
 * @author YouCai.Liu
 * @since 2021/11/4
 * ...
 */
@Component
public class AdminSecurityConfig implements BeanFactoryPostProcessor {

    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {

        // 白名单
        SecurityUtil.WHITE_LIST.add("/admin/auth/**");

    }
}
